
package com.insigma.business.qrcode.common.dao;

import com.insigma.business.qrcode.common.dto.GovOrgBSearcher;
import org.apache.ibatis.annotations.Param;
import com.insigma.business.qrcode.soldier.entity.GovOrgDO;

import java.util.List;


public interface GovOrgDao {

    
    List<GovOrgDO> search(final GovOrgBSearcher innerSearcher);

    
    GovOrgDO get(final String id);

    
    Integer insert(final GovOrgDO govOrgDO);

    
    Integer update(final GovOrgDO govOrgDO);

    
    Integer delete(@Param("id") final String id, @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);

    
    GovOrgDO getByEmployId(String employeeId);


    GovOrgDO getByAreaCodeAndId(@Param("areaCode")String areaCode, @Param("baseId")String baseId);


    List<GovOrgDO> getByParentId(String parentId);

    List<GovOrgDO> listFwzChildren(@Param("codeLike")String codeLike, @Param("level")int level);

    List<GovOrgDO> searchAllSubOrgByCode(GovOrgBSearcher govOrgBSearcher);

    List<GovOrgDO> listByEmployeeId(String id);

    List<GovOrgDO> listSubStationByCode(String code);

    int countSubStationByCode(String codeLike);

    Integer insertZzd(GovOrgDO govOrg);

    List<GovOrgDO> getByZzdAreaCode(String adminAreaCode);

    Integer realDelZzd(String areaLike);

    List<GovOrgDO> listByNameLikeOfYh(@Param("name")String name, @Param("code")String code);

    List<GovOrgDO> searchGov(GovOrgBSearcher govOrgBSearcher);

}
